<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #grandpa{
            width: 400px;
            height: 400px;
            background-color: red;
        }
        #father{
            width: 300px;
            height:300px;
            background-color: green;
        }
        #me{
            width: 200px;
            height: 200px;
            background-color: blue;
        }

    </style>
</head>

<body>
    <div id="app">
        <div id="grandpa" @click="grandpaFn">
            <!-- <div id="father" @click.self.stop ="fatherFn"> -->
            <div id="father" @click.stop.self ="fatherFn">
                <div id="me" @click="meFn" ></div>
            </div>
        </div>
    </div>
    <script src="./js/vue.js"></script>

    <script>
        let vm = new Vue({
            el: "#app",
            data: {
               
            },
            methods: {
                meFn(){                    
                    console.log("me被点了");
                },
                fatherFn(){
                    console.log("父亲被点了");
                },
                grandpaFn(){
                    console.log("爷爷被点了");
                }
            }
        })

    </script>
</body>

</html>